home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7776 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: fish.pond.com!usenet
  2. From: kannag@rpr.rpna.com
  3. Newsgroups: comp.lang.c
  4. Subject: OpenVMS system service routines
  5. Date: 28 Feb 1996 22:05:38 GMT
  6. Organization: FishNet
  7. Message-ID: <4h2jji$8mp@fish.pond.com>
  8. NNTP-Posting-Host: arctic-12.vf.pond.com
  9. X-Newsreader: AIR News 3.X (SPRY, Inc.)
  10.  
  11. I'm trying to access the authorization file (UAF.DAT) to check  the encrypted password and
  12. other user specific information.  I'm using the SYS$HASH_PASSWORD and SYS$GETUAI
  13. routines.  They seem to be working - the return status from my calls is a 1.  However, the
  14. length that is returned is always some huge number, and the encryped password I get back from
  15. the GETUAI routine does not match the one returned from HASH_PASSWORD (i've made
  16. sure to use the right SALT and ALGORITHM parameters).  
  17.  
  18. I think my problems stem from the data structure being passed to the routines.  The encryped
  19. password routine excepts a quadword (8 bytes).  I've tried using double, long int,  char,
  20. and a struct of two ints -   all to no avail.
  21.  
  22. Any comments from VAX System Gurus......
  23.  
  24. Thanx in advance,
  25. Ganesh.
  26.  
  27.